<?php include $this->getViewFile('/common/Head') ?>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <?php include $this->getViewFile('/common/Nav') ?>
    <div class="table_list">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <td width="50" align="center">Gid</td>
            <td>分组名称</td>
            <td width="100" align="center">自动升级</td>
            <td width="100" align="center">所需成长值</td>
            <td width="100" align="center">管理操作</td>
          </tr>
        </thead>
        <tbody>
          <?php
		  foreach($data as $rs){
		  ?>
          <tr>
            <td align="center"><?php echo $rs->gid ?></td>
            <td><?php echo $rs->name ?></td>
            <td align="center"><?php echo $rs->buffet_upgrade?'√':'X' ?></td>
            <td><?php echo $rs->experience ?></td>
            <td align="center">
            <?php
			$op = array();
			if(RBAC::authenticate('edit')){
				$op[] = '<a href="'.AdminBase::U('edit',array('gid'=>$rs->gid)).'" >编辑</a>';
			}
			if(RBAC::authenticate('delete')){
				$op[] = '<a class="J_ajax_del" href="'.AdminBase::U('delete',array('gid'=>$rs->gid)).'" >删除</a>';
			}
			echo implode(' | ',$op);
			?>
            </td>
          </tr>
          <?php
		  }
		  ?>
        </tbody>
      </table>
    </div>
</div>
<script src="<?php echo $staticUrl; ?>statics/js/common.js"></script>
<script>

</script>
</body>
</html>